<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<ui:composition template="/WEB-INF/templates/basicTemplate.xhtml"
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:fn="http://java.sun.com/jsp/jstl/functions"
	xmlns:p="http://primefaces.org/ui">
	<ui:define name="content">
			<f:event type="preRenderView" listener="#{dettaglioBean.doOnLoad()}" />
			<div style="clear: both; padding: 10px;">
				<p:commandButton type="button" value="Indietro" id="buttonIndietro"
					onclick="history.go(-1)" icon="ui-icon-triangle-1-w"/>
				<p:commandButton value="Elimina Utente" onclick="return confirm('Sei sicuro di voler eliminare questo utente?');"
					id="buttonElimina" action="#{dettaglioBean.eliminaUtente}"
					update=":myform:growl" icon="ui-icon-close"/>
			</div>
			<p:panel id="detailPanel">
			<div style="margin:10px;">
				<h:outputText value="ID Utente: #{dettaglioBean.item.userId}" style="font-weight:bold"/>
				<h:outputText value="&lt;br/&gt;" escape="false" />
				<h:outputText value="Username:  #{dettaglioBean.item.username}" style="font-weight:bold"/>
			</div>
				<p:tabView orientation="top">
					<p:tab title="Query">
						<ui:include src="dettaglioQuerySnippet.xhtml" />
					</p:tab>
					<p:tab title="Laboratori">
						<ui:include src="dettaglioLaboratoriSnippet.xhtml" />
					</p:tab>
					<div class="fix"></div>
				</p:tabView>
			</p:panel>
	</ui:define>
</ui:composition>
